home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 1 / QRZ Ham Radio Callsign Database - December 1993.iso / ucsd / packet / tcpip / sys5 / iscwmpst.z / iscwmpst / tcp / src / trace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-10  |  2.5 KB  |  86 lines

  1. /* @(#) $Header: trace.h,v 1.5 91/05/09 07:39:07 deyke Exp $ */
  2.  
  3. #ifndef _TRACE_H
  4. #define _TRACE_H
  5.  
  6. #ifndef _MBUF_H
  7. #include "mbuf.h"
  8. #endif
  9.  
  10. #ifndef _IFACE_H
  11. #include "iface.h"
  12. #endif
  13.  
  14. #include <stdio.h>
  15.  
  16. /* Definitions for packet dumping */
  17.  
  18. /* Table of trace subcommands */
  19. struct tracecmd {
  20.     char *name;     /* Name of trace subcommand */
  21.     int val;        /* New setting for these bits */
  22.     int mask;       /* Mask of bits affected in trace word */
  23. };
  24. extern struct tracecmd Tracecmd[];      /* Defined in trace.c */
  25.  
  26. /* List of address testing and tracing functions for each interface.
  27.  * Entries are placed in this table by conditional compilation in main.c.
  28.  */
  29. struct trace {
  30.     int (*addrtest) __ARGS((struct iface *iface,struct mbuf *bp));
  31.     void (*tracef) __ARGS((FILE *,struct mbuf **,int));
  32. };
  33.  
  34. extern struct trace Tracef[];
  35.  
  36. /* In trace.c: */
  37. void dump __ARGS((struct iface *iface,int direction,unsigned type,struct mbuf *bp));
  38. void raw_dump __ARGS((struct iface *iface,int direction, struct mbuf *bp));
  39. void shuttrace __ARGS ((void));
  40.  
  41. /* In arcdump.c: */
  42. void arc_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  43. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  44.  
  45. /* In arpdump.c: */
  46. void arp_dump __ARGS((FILE *fp,struct mbuf **bpp));
  47.  
  48. /* In ax25dump.c: */
  49. void ax25_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  50. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  51.  
  52. /* In enetdump.c: */
  53. void ether_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  54. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  55.  
  56. /* In icmpdump.c: */
  57. void icmp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  58.  
  59. /* In ipdump.c: */
  60. void ip_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  61.  
  62. /* In kissdump.c: */
  63. void ki_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  64. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  65.  
  66. /* In nrdump.c: */
  67. void netrom_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  68.  
  69. /* In pppdump.c: */
  70. void ppp_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  71.  
  72. /* In ripdump.c: */
  73. void rip_dump __ARGS((FILE *fp,struct mbuf **bpp));
  74.  
  75. /* In slcompdump.c: */
  76. void sl_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  77. void vjcomp_dump __ARGS((FILE *fp,struct mbuf **bpp,int unused));
  78.  
  79. /* In tcpdump.c: */
  80. void tcp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  81.  
  82. /* In udpdump.c: */
  83. void udp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  84.  
  85. #endif  /* _TRACE_H */
  86.